home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #11 / Amiga Plus CD - 2004 - No. 11.iso / AmiSoft / Dev / misc / temgen.lha / Temgen / tg-0.11 / eval.h < prev    next >
C/C++ Source or Header  |  2002-12-18  |  667b  |  30 lines

  1. #ifndef __eval_h_
  2. #define __eval_h_
  3.  
  4. #include "structs.h"
  5.  
  6. int system_obj( void );
  7. const char *evalstr( struct expression* );
  8. int eval( int reg, struct expression* );
  9. int istrue( int obj );
  10. void setret( struct expression* ); 
  11. void setrets( const char* );
  12. void setreti( int );
  13. void setretf( double );
  14. int select_obj( struct expression* );
  15.  
  16. /* refvar flags:  0 - all variables, 1 - defined local arguments only */
  17. int refvar( int name, unsigned flags );
  18.  
  19. int nextreg( void );
  20. int find_case( int, struct caselist* );
  21.  
  22. /* create local variable */
  23. void create_local( int name );
  24.  
  25. /* temporary objects allocation */
  26. int tmp_alloc( void );
  27. void tmp_free( int obj );
  28.  
  29. #endif
  30.